import json
jsonfile = {
    "people":[
        {
            "firstName": "Brett",
            "lastName":"McLaughlin"
        },
        {
            "firstName":"Jason",
            "lastName":"Hunter"
        }
    ]
}
with open('D:\zuoye\祁梦晓2.json','w') as f:
    json.dump(jsonfile,f)

with open('D:\zuoye\祁梦晓2.json','r') as f1:
    data = json.load(f1)
    print(data)